package com.zmovie.framework.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiOperation;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * 
 * @TableName movie_to_type
 */
@TableName(value ="movie_to_type")
@Data
@ApiModel("电影类型关联")
public class MovieToType implements Serializable {
    /**
     * id
     */
    @TableId(type = IdType.AUTO)
    @ApiModelProperty("主键")
    private Integer id;

    /**
     * 电影id
     */
    @ApiModelProperty("电影id")
    @NotNull
    private Integer movieId;

    /**
     * 电影类型id
     */
    @ApiModelProperty("电影类型id")
    @NotNull
    private Integer typeId;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}